﻿using System;
using System.Collections;
using System.Linq;
using System.Text;
using GraphBase.Interfaces;

namespace GraphBase
{
    public class Edge : GraphObject, IEdge
    {
        Vertex m_incoming;
        Vertex m_outgoing;

        public IVertex IncomingVertex { get { return m_incoming; } }
        public IVertex OutgoingVertex { get { return m_outgoing; } }

        public Edge(Vertex incoming, Vertex outgoing)
        {
            m_incoming = incoming;
            m_outgoing = outgoing;
        }
    }
}
